package com.springboot_shopping.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.springboot_shopping.entity.OrderItem;
import com.springboot_shopping.entity.UserAddress;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderItemMapper extends BaseMapper<OrderItem> {

    // 批量插入订单明细
    void insertBatch(@Param("orderItems") List<OrderItem> orderItems);


    // 根据订单ID查询明细
    List<OrderItem> findByOrderId(@Param("orderId") Integer orderId);
}

